package net.xdclass.mapper;

import net.xdclass.model.CouponRecordDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.xdclass.model.CouponTaskDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 二当家小D
 * @since 2021-05-19
 */
@Mapper
public interface CouponRecordMapper extends BaseMapper<CouponRecordDO> {

    int updateCouponRecord(@Param("userId") Long id, @Param("lockCouponRecordIds") List<Long> lockCouponRecordIds ,@Param("couponState") String couponState);

    void updateState(@Param("couponRecordId") Long couponRecordId, @Param("couponState") String state);
}
